package com.lsc.www.day09.hm;

import java.util.Scanner;

public class Test17 {
    public static void main(String[] args) {
        System.out.println("请输入年");
        Scanner s = new Scanner(System.in);
        int a = s.nextInt();
        System.out.println("请输入月");
        int b = s.nextInt();
        System.out.println("请输入日");
        int c = s.nextInt();
        int data = 0;
        if (a % 4 == 0) {
            for (int i = 1; i <= b-1; i++){
                switch (i) {
                    case 1: case 3: case 5: case 7: case 8: case 10: case 12:
//                        System.out.println(31);
                        data += 31;
                        break;
                    case 2:
//                        System.out.println(29);
                        data += 29;
                        break;
                    case 4: case 6: case 9: case 11:
//                        System.out.println(30);
                        data += 30;
                        break;
                }
            }
            data+=c;
        }

        System.out.println(data);
    }
}
